<template>
  <div class="read_history">
    <div class="read_history_title">
      <div class="read_history_title_left">浏览历史</div>
      <div class="read_history_title_right">{{count}}/6</div>
    </div>
    <div class="read_history_main">
      <div class="read_history_move">
        <a href="#" class="read_history_left"></a>
        <a href="#" class="read_history_right"></a>
      </div>
      <div class="read_history_container">
        <ul class="read_history_list">
          <li v-for="item in productInfo">
            <div>
              <a href="#"><img :src="item.imgUrl"/></a>
            </div>
            <div class="read_history_productDetail"><a href="#">{{item.productDetail}}</a></div>
            <div class="read_history_bottom">
              <div class="read_history_productPrice">￥{{item.price}}</div>
              <div class="read_history_purchase"><a href="#">立即购买</a></div>
            </div>
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    data:function(){
      return {
        count:1,
        productInfo:[
          {imgUrl:'../../../static/products/p_1.jpg',productDetail:'1111111111',price:32.5},
          {imgUrl:'../../../static/products/p_2.jpg',productDetail:'22222222',price:22.5},
          {imgUrl:'../../../static/products/p_3.jpg',productDetail:'3333333333',price:132.5},
          {imgUrl:'../../../static/products/p_4.jpg',productDetail:'444444',price:2232.5},
          {imgUrl:'../../../static/products/p_5.jpg',productDetail:'55555',price:3332.5},
          {imgUrl:'../../../static/products/p_6.jpg',productDetail:'66666',price:342.5}
        ]
      }
    }
  }
</script>

<style>
  .read_history{
    width:240px;
    height:330px;
    float:right;
    border:1px solid #ddd;

  }
  .read_history_title{
    position:relative;
    height:40px;
    border:1px solid #ddd;
  }

  .read_history_title_left{
    float:left;
    font-size:16px;
    line-height:40px;
    padding-left:10px;
  }

  .read_history_title_right{
    float:right;
    line-height:40px;
    padding-right:10px;
  }

  .read_history_main{
    position:relative;
  }

  .read_history_left{
    width:20px;
    height:20px;
    position:absolute;
    border-bottom:1px solid gray;
    border-left:1px solid gray;
    transform:rotate(45deg);
    left:15px;
    top:100px;
    cursor:pointer;
    z-index:5;
  }

  .read_history_right{
    width:20px;
    height:20px;
    position:absolute;
    border-bottom:1px solid gray;
    border-right:1px solid gray;
    transform:rotate(-45deg);
    left:205px;
    top:100px;
    cursor:pointer;
    z-index:5;
  }

  .read_history_container{
    width:202px;
    position:relative;
    overflow:hidden;
  }

  .read_history_list{
    width:1980px;
    height:238px;
    position:relative;
    left:30px;
    top:5px;
    overflow:hidden;
  }

  .read_history_list li{
    float:left;
  }

  .read_history_list li img{
    width:170px;
    height:170px;
  }

  .read_history_productDetail{
    font-size:14px;
    text-align:center;
  }

  .read_history_bottom{
    position:relative;
  }

  .read_history_productPrice{
    float:left;
    font-size:16px;
    color:red;
    padding-left:5px;
  }

  .read_history_purchase{
    float:right;
    font-size:14px;
    padding-right:5px;
  }
  .read_history_purchase a{
    border:1px solid #ddd;
    color:gray;
    padding:5px;
  }

</style>
